package com.yd.basemodule.base

import android.os.Bundle
import android.os.Handler
import androidx.viewbinding.ViewBinding
import com.tencent.ncnnyolox.basemodule.base.BaseActivity
import com.tencent.ncnnyolox.basemodule.base.BaseViewModel

/**
 * <pre>
 *     author : yh
 *     e-mail : xxx@xx
 *     time   : 2023/12/22
 *     desc   :
 * </pre>
 */
abstract class BaseScanActivity<VM : BaseViewModel, DB : ViewBinding> : BaseActivity<VM, DB>() {
    private lateinit var handler: Handler
    override fun initView(savedInstanceState: Bundle?) {
        TODO("Not yet implemented")
    }

    override fun initData() {
        TODO("Not yet implemented")
    }


    fun getHandler(): Handler {
        if (!this::handler.isInitialized) {
            handler = Handler()
        }
        return handler
    }
}